package com.wynn.service;

import com.wynn.Exception.MyException;
import com.wynn.pojo.*;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.ServletContext;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public interface PlanService {

    public Result getChartData1();

    public List<PlanSummary> selectAll();

    public void addPlan(PlanSummary planSummary) throws MyException;

    public void editPlan(PlanSummary planSummary);

    public void deletePlan(PlanSummary planSummary);

    public List<PlanSummary> search(ProductLine productLine,Date produceDate);

    public List<PlanSummary> searchOnePlan(ProductLine productLine,Date produceDate);

    public void importPlan(ArrayList<ArrayList<String>> row, Date produceDate);

    public Schedule schedule(Date produceDate, ProductLine productLine);

    public void calculation(PlanSummary planSummary) throws InterruptedException;

    public CalcuStatue calcuStatue(SearchPlan searchPlan);
}
